From: Keir Fraser Date: Fri, 11 Jan 2008 11:01:36 +0000 (+0000) Subject: hvm: hpet: Tidy up hpet_to_ns_limit calculation. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14445^2~51 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=93c129e9bda29bc15c1cd79cb7ef609cdfa7a1dd;p=xen.git hvm: hpet: Tidy up hpet_to_ns_limit calculation. Suggested by Haitao Shan @ Intel. Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/hvm/hpet.c b/xen/arch/x86/hvm/hpet.c index 72d1ccd4a7..f6845755a0 100644 --- a/xen/arch/x86/hvm/hpet.c +++ b/xen/arch/x86/hvm/hpet.c @@ -551,7 +551,7 @@ void hpet_init(struct vcpu *v) h->tsc_freq = ticks_per_sec(v); h->hpet_to_ns_scale = ((S_TO_NS * TSC_PER_HPET_TICK) << 10) / h->tsc_freq; - h->hpet_to_ns_limit = (~0ULL >> 1) / h->hpet_to_ns_scale; + h->hpet_to_ns_limit = ~0ULL / h->hpet_to_ns_scale; /* 64-bit main counter; 3 timers supported; LegacyReplacementRoute. */ h->hpet.capability = 0x8086A201ULL;